package day05;

import java.util.Random;

public class Demo03循环遍历 {
    public static void main(String[] args) {

        Random r = new Random();

        int []arr=new int[10];

        for (int i = 0; i < arr.length; i++) {
            int num = r.nextInt(100)+1;
            arr[i]=num;
            System.out.println(arr[i]);
        }
    }
}
